package com.ziyun.erp.modules.material.service;

import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import com.ziyun.erp.modules.material.entity.MaterialCategoryEntity;
import io.renren.common.utils.R;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 耗材分类表
 *
 * @author guizhao
 * @email ...
 * @date 2018-08-08 11:34:35
 */
public interface MaterialCategoryService extends IService<MaterialCategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<MaterialCategoryEntity> queryAllList();

    void deleteUpdate(Integer categoryId);

    List<MaterialCategoryEntity> queryListParentId(Integer categoryId);

    List<MaterialCategoryEntity> queryList(HashMap<String, Object> stringObjectHashMap);

    String selectChildrenCategoryId(String categoryId);

    void insertMaterialCategory(MaterialCategoryEntity materialCategory);

    R getTree();

    Integer getlevel(String parentName);
}

